package com.bbzn.device.client.dao.group;

import com.bbzn.device.client.dataobject.Group;
import java.util.Date;
import java.util.List;
import com.bbzn.device.client.dto.group.GroupDTO;import org.apache.ibatis.annotations.Param;

public interface GroupMapper {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(Group record);

    int insertOrUpdate(Group record);

    int insertOrUpdateSelective(Group record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(Group record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    Group selectByPrimaryKey(Long id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Group record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Group record);

    List<Group> findByAll(Group group);

    int updateBatch(List<Group> list);

    int batchInsert(@Param("list") List<Group> list);

    /**
     * 检查值守状态
     *
     * @return
     */
    int checkStateByImei(@Param("imei") String imei);

    int updateBatchSelective(List<Group> list);

    List<Group> queryByAll(GroupDTO group);

    int batchDel(@Param("ids") List<Long> list);
}